<?php
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.

return CMap::mergeArray(
	array(
		'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
		'name'=>'TG cron',
		'preload'=>array('log'),
		'import'=>array(
			'application.models.*',
			'application.components.*',
			'application.extensions.yii-mail.*',
			'ext.giix-components.*', // giix components	
		),
		'modules'=>array(
            'admin' => array()
		),
		'components'=>array(
			'user'=>array(
				// enable cookie-based authentication
				'allowAutoLogin'=>true,
			),
		    'mail' => array(
		        'class' => 'application.extensions.yii-mail.YiiMail',
		    ),
			'image'=>array(
	            'class'=>'application.extensions.image.CImageComponent',
	            // GD or ImageMagick
	            'driver'=>'GD',
	            // ImageMagick setup path
	            //'params'=>array('directory'=>'D:/Program Files/ImageMagick-6.4.8-Q16'),
	        ),
			// uncomment the following to enable URLs in path-format
			'log'=>array(
			    'class'=>'CLogRouter',
			),			
		),
		
		// application-level parameters that can be accessed
		// using Yii::app()->params['paramName']
		'params'=>array(
            'systemEmail' => 'kshumdev@gmail.com',
			'adminEmail'=>'konstantin.shum@gmail.com',
            'geocoder_key' => '',
			
			'default_free_firm_tmpl_ids' => array(4),
			
            'default_country_id' => 1,
            'default_region_id' => 1,
			'default_rubric_id' => 1,
            
			'list_firms_perpage'=> 1,
            
            'firms_img_orig' => '/uploads/firms/img/orig/',
            'firms_img_big' => '/uploads/firms/img/big/',
            'firms_img_mid' => '/uploads/firms/img/mid/',
            'firms_img_thumb' => '/uploads/firms/img/thumb/',
            'firms_img_logo' => '/uploads/firms/img/logo/',
			'firms_logo_h' => 80,
			'firms_logo_w' => 120,
			'firms_thumb_h' => 80,
			'firms_thumb_w' => 100,
			'firms_mid_h' => 480,
			'firms_mid_w' => 640,
			'firms_big_h' => 768,
			'firms_big_w' => 1024,
		),
	),
    require_once(dirname(__FILE__).'/local.php')
);